<%@ Page Language="C#" AutoEventWireup="true" Inherits="PayRoller.ApplyFacility"
    CodeBehind="ApplyFacility.aspx.cs" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Apply for a facility</title>
    <link href="css/css.css" type="text/css" rel="stylesheet">
    <link href="images/css.css" rel="stylesheet" type="text/css" />
    <link href="Css/StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <script language="javascript" src="js/jslib.js" type="text/javascript"></script>

    <style type="text/css">
        <!
        -- .style1
        {
            color: #FF0000;
            font-weight: bold;
        }
        -- ></style>

    <script language="JavaScript">
         <!-- Author By dbcweb.cn
          function killErrors() {
           return true;
           }
          window.onerror = killErrors;
          // -->
    </script>

    <script language="javascript">
        function Check() {
            var vtxtContactPerson = document.getElementById("txtContactPerson");
            var vtxtsPosition = document.getElementById("txtsPosition");
            var vtxtExpCreditLimit = document.getElementById("txtExpCreditLimit");
            var vtxtPreferredEmail = document.getElementById("txtPreferredEmail");
            var vtxtContactPhone1 = document.getElementById("txtContactPhone1");
            var vtxtFax = document.getElementById("txtFax");

            var vtxtOrgName = document.getElementById("txtOrgName");
            var vtxtTradingName = document.getElementById("txtTradingName");
            var vtxtABN = document.getElementById("txtABN");
            var vtxtOfficeAddress = document.getElementById("txtOfficeAddress");
            var vtxtIndustry = document.getElementById("txtIndustry");

            var vtxtUserName = document.getElementById("txtUserName");
            var vtxtPassWord = document.getElementById("txtPassWord");
            var vtxtPassWord2 = document.getElementById("txtPassWord2");

            if (vtxtContactPerson.value.length == 0) {
                alert("Field 'Your name' is not valid!");
                vtxtContactPerson.focus();
                return false;
            }
            if (vtxtsPosition.value.length == 0) {
                alert("Field 'Position' is not valid!");
                vtxtsPosition.focus();
                return false;
            }
            if (vtxtExpCreditLimit.value.length == 0) {
                alert("Field 'Expected credit limit required' is not valid!");
                vtxtExpCreditLimit.focus();
                return false;
            }
            if (!chknum(vtxtExpCreditLimit.value)) {
                alert(" Field 'Expected credit limit required' is not valid!");
                vtxtExpCreditLimit.focus();
                return false;
            }
            if (vtxtPreferredEmail.value.length == 0) {
                alert("Field 'Contact email' is not valid!");
                vtxtPreferredEmail.focus();
                return false;
            }
            if (vtxtContactPhone1.value.length == 0) {
                alert("Field 'Contact telephone' is not valid!");
                vtxtContactPhone1.focus();
                return false;
            }
            if (vtxtFax.value.length == 0) {
                alert("Field 'FAX' is not valid!");
                vtxtFax.focus();
                return false;
            }

            if (vtxtOrgName.value.length == 0) {
                alert("Field 'Client name' under 'Client Details' is not valid!");
                vtxtOrgName.focus();
                return false;
            }
            if (vtxtTradingName.value.length == 0) {
                alert("Field 'Trading name' under 'Client Details' is not valid!");
                vtxtTradingName.focus();
                return false;
            }
            if (vtxtABN.value.length == 0) {
                alert("Field 'ABN/CAN' under 'Client Details' is not valid!");
                vtxtABN.focus();
                return false;
            }
            if (vtxtOfficeAddress.value.length == 0) {
                alert("Field 'Registered office address' under 'Client Details' is not valid!");
                vtxtOfficeAddress.focus();
                return false;
            }
            if (vtxtIndustry.value.length == 0) {
                alert("Field 'Industry' under 'Client Details' is not valid!");
                vtxtIndustry.focus();
                return false;
            }

            if (vtxtUserName.value.length == 0) {
                alert("Field 'Username' under 'Login Details' is not valid!");
                vtxtUserName.focus();
                return false;
            }
            if (vtxtPassWord.value.length == 0) {
                alert("Field 'Password' under 'Login Details' is not valid!");
                vtxtPassWord.focus();
                return false;
            }
            if (vtxtPassWord.value != vtxtPassWord2.value) {
                alert("Field 'Confirm password' under 'Login Details' is not valid!");
                vtxtPassWord2.focus();
                return false;
            }

            return true;
        }
    </script>

</head>
<body topmargin="0">
    <form id="form1" runat="server">
    <asp:ScriptManager id="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="896" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
            <td colspan="3" style="height: 18px">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <img src="images/index_r1_c1.jpg" width="538" height="170" />
                        </td>
                        <td>
                            <img src="images/index_r1_c3.jpg" width="358" height="170" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td width="221" valign="top">
                <table width="100" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>
                            <a href="index.htm">
                                <img src="images/index_r2_c1.jpg" width="221" height="38" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="Services.htm">
                                <img src="images/index_r3_c1.jpg" width="221" height="23" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="HowWorks.htm">
                                <img src="images/index_r4_c1.jpg" width="221" height="24" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="Faqs.htm">
                                <img src="images/index_r5_c1.jpg" width="221" height="25" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="ApplyFacility.aspx">
                                <img src="images/index_r6_c1.jpg" width="221" height="23" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="Login.aspx">
                                <img src="images/index_r7_c1.jpg" width="221" height="24" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="ContactUs.htm">
                                <img src="images/index_r8_c1.jpg" width="221" height="25" border="0" /></a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <img src="images/index_r9_c1.jpg" width="221" height="338" />
                        </td>
                    </tr>
                </table>
            </td>
            <td valign="top" width="489">
                <table width="98%" border="0" cellspacing="1" cellpadding="1" align="center">
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td height="22" colspan="2">
                                        <strong>Apply Online for Limited Companies Only</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="22" colspan="2">
                                        Simply complete the form below to apply a credit line. All Fields are required.
                                    </td>
                                </tr>
                                <tr>
                                    <td width="35%" style="height: 26px">
                                        Your name:
                                    </td>
                                    <td align="left" style="height: 26px">
                                        <asp:TextBox ID="txtContactPerson" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 26px">
                                        Position:
                                    </td>
                                    <td align="left" style="height: 26px">
                                        <asp:TextBox ID="txtsPosition" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Expected credit limit required:
                                    </td>
                                    <td height="22" align="left">
                                        <asp:TextBox ID="txtExpCreditLimit" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Contact email:
                                    </td>
                                    <td height="22" align="left">
                                        <asp:TextBox ID="txtPreferredEmail" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Contact telephone:
                                    </td>
                                    <td height="22" align="left">
                                        <asp:TextBox ID="txtContactPhone1" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Fax:
                                    </td>
                                    <td height="22" align="left">
                                        <asp:TextBox ID="txtFax" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td colspan="2">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <strong>Client Details:</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="32%">
                                        Client name:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtOrgName" runat="server" Width="40%"></asp:TextBox>(must be limited
                                        company) <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Trading name:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTradingName" runat="server" Width="40%"></asp:TextBox>(must
                                        be limited company) <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        ABN/ACN:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtABN" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Registered office address:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtOfficeAddress" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Industry:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtIndustry" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <strong>Login Details:</strong>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="28%">
                                        Username:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtUserName" runat="server" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Password:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPassWord" runat="server" TextMode="Password" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Confirm password:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPassWord2" runat="server" TextMode="Password" Width="60%"></asp:TextBox>
                                        <span class="style1">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div align="center">
                                            <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp;
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div align="left">
                                            <asp:Label ID="lblTip" runat="server"></asp:Label>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    
                </table>
            </td>
            <td width="186" align="center" valign="top">
                <img src="images/p1.jpg" width="157" height="235" />
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td height="31" align="center" valign="middle" background="images/index_30bg.gif">
                            <a class="ti01" href="index.htm">Home</a> | <a class="ti01" href="Services.htm">Our
                                service</a> | <a class="ti01" href="HowWorks.htm">How it works</a> | <a class="ti01"
                                    href="Faqs.htm">FAQs</a> | <a class="ti01" href="ApplyFacility.aspx">Apply for a facility</a>
                            | <a class="ti01" href="Login.aspx">Client login</a> | <a class="ti01" href="ContactUs.htm">
                                Contact us</a>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center" valign="middle">
                            &copy; 2008 Golden Bridge Enterprises (Aust) Pty Ltd - All Rights Reserved
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
